<?php

function getColors(){
    $colors = array();
    foreach(ProductColorTable::getInstance()->findAll() as $color)
    {
        $colors[$color->name] = $color->name;
    }
    return $colors;
}
function getSizes(){
    $sizes = array();
    foreach(ProductSizeTable::getInstance()->findAll() as $size)
    {
        $sizes[$size->name] = $size->name;
    }
    return $sizes;
}
?>